<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    {{ming.name+ming.age}}
    <!-- {{str+'.'+sortStr(a,b))}} -->

  </div>
</body>
</html>
<script src="../packmages/vue.js"></script>
<script>
  
  const arr = [2,3,45,1,3,2]
  arr.sort(function (a,b){
    return a-b;
  });
  console.log(arr);
  



  const vm = new Vue({
    el:'#app',
    data(){
      return {
        msg:'hello vue',
        title:`<h1>标题</h1>`,
        str:'349273488475',
        ming:{
          name:'小明',
          age:18,
        }
      }
    },
    methods:{
      msg1(){
        return this.msg;
      },
    }
  })
</script>